package com.jiaomatech.demo.order;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;

/**
 * Description: 启动类 .<br>
 *
 * @author m-xy
 *     Created By 2019/10/18 14:00
 */
@EnableAsync
@EnableScheduling
@EnableDiscoveryClient
@EnableFeignClients("com.jiaomatech.demo.user")
@SpringBootApplication
public class OrderApplication {
    private final static Logger logger = LoggerFactory.getLogger(OrderApplication.class);

    public static void main(String[] args) {
        SpringApplication.run(OrderApplication.class);
        logger.info("********** 【订单服务】启动成功 **********");
    }
}
